package com.carsite.webapp.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

/**
 * Action class to handle CRUD on a NewsArea object
 *
 * @struts.action name="indexForm" path="/index" scope="request"
 *  validate="false" parameter="method" input="mainMenu"

 * @struts.action-set-property property="cancellable" value="true"
 * @struts.action-forward  name="indexPage" path="/front/front_index.jsp"
 * 
 * 
 * 
 * 
 * @struts.action-forward  name="index"  path="/index.html" redirect="true"
 * 
 */
public  final class IndexAction extends BaseAction{
     
	
	//包装进入首页数据
	public ActionForward populatePageData(ActionMapping mapping, ActionForm form,
                                  HttpServletRequest request,
                               HttpServletResponse response)
                       throws Exception {
                  if (log.isDebugEnabled()) {
                         log.debug("Entering 'populatePageData' method");
                     }
             
             return mapping.findForward("indexPage");               
     }
	

	
	//消息详细内容

	
	  
	
	   public ActionForward unspecified(ActionMapping mapping, ActionForm form,
               HttpServletRequest request,
               HttpServletResponse response)
		throws Exception {
		   return populatePageData(mapping, form, request, response);
		}
	  
	
	
  }
